<form class="layui-form" action="">
	<input name="id" id="id" type="hidden" value="{$info.id}">
	<div class="layui-form-item">
		<label class="layui-form-label">商品封面：</label>
		{:W('common/uploadImg',array(cover,$info['cover_url'],'90x90',封面))}
	</div>
	<div class="layui-form-item">
		<div class="layui-inline">
			<label class="layui-form-label">商品编号：</label>
			<div class="layui-input-inline">
				<input name="product_sn" id="product_sn" value="{$info.product_sn}" lay-verify="required" autocomplete="off" placeholder="请输入商品编号" class="layui-input" type="text">
			</div>
		</div>
		<div class="layui-inline">
			<label class="layui-form-label">商品名称：</label>
			<div class="layui-input-inline">
				<input name="name" id="name" value="{$info.name}" lay-verify="required" placeholder="请输入商品名称" autocomplete="off" class="layui-input" type="text">
			</div>
		</div>
		<div class="layui-inline">
			<label class="layui-form-label">商品简称：</label>
			<div class="layui-input-inline">
				<input name="short_name" id="short_name" value="{$info.short_name}" lay-verify="required" placeholder="请输入商品简称" autocomplete="off" class="layui-input" type="text">
			</div>
		</div>
	</div>
	<div class="layui-form-item">
		<div class="layui-inline">
			<label class="layui-form-label">商品品牌：</label>
			<div class="layui-input-inline">
				{:W('common/singleSelect',array('brand_id|1|商品品牌|name|id',M("brand")->where(['status'=>1,'mark'=>1])->select(),$info['brand_id']))}
			</div>
		</div>
		<div class="layui-inline">
			<label class="layui-form-label">商品标签：</label>
			<div class="layui-input-inline">
				{:W('common/singleSelect',array('tags_id|1|商品标签|name|id',M("tags")->where(['status'=>1,'mark'=>1])->select(),$info['tags_id']))}
			</div>
		</div>
		<div class="layui-inline">
			<label class="layui-form-label">商品型号：</label>
			<div class="layui-input-inline">
				<input name="product_model" id="product_model" value="{$info.product_model}" lay-verify="required" placeholder="请输入商品型号" autocomplete="off" class="layui-input" type="text">
			</div>
		</div>
	</div>
	<div class="layui-form-item">
		<div class="layui-inline">
			<label class="layui-form-label">商品规格：</label>
			<div class="layui-input-inline">
				<input name="product_spec" id="product_spec" value="{$info.product_spec}" lay-verify="required" placeholder="请输入商品规格" autocomplete="off" class="layui-input" type="text">
			</div>
		</div>
		<div class="layui-inline">
			<label class="layui-form-label">商品编号：</label>
			<div class="layui-input-inline">
				<input name="business_sn" id="business_sn" value="{$info.business_sn}" lay-verify="required" placeholder="请输入商家商品编号" autocomplete="off" class="layui-input" type="text">
			</div>
		</div>
		<div class="layui-inline">
			<label class="layui-form-label">是否上架：</label>
			<div class="layui-input-inline">
				{:W('common/switchCheck',array(is_sale,'上架|下架',$info['is_sale'] ? $info['is_sale'] : 1))}
			</div>
		</div>
	</div>
	<div class="layui-form-item">
		<div class="layui-inline">
			<label class="layui-form-label">是否热销：</label>
			<div class="layui-input-inline">
				{:W('common/switchCheck',array(is_hot,'是|否',$info['is_hot'] ? $info['is_hot'] : 1))}
			</div>
		</div>
		<div class="layui-inline">
			<label class="layui-form-label">是否新品：</label>
			<div class="layui-input-inline">
				{:W('common/switchCheck',array(is_new,'是|否',$info['is_new'] ? $info['is_new'] : 1))}
			</div>
		</div>
		<div class="layui-inline">
			<label class="layui-form-label">是否精品：</label>
			<div class="layui-input-inline">
				{:W('common/switchCheck',array(is_best,'是|否',$info['is_best'] ? $info['is_best'] : 1))}
			</div>
		</div>
	</div>
	<div class="layui-form-item" style="width:950px;">
		<div class="layui-inline">
			<label class="layui-form-label">商品分类：</label>
			<div class="layui-input-block">
				{:W('cate/multipleSelect',array('category_id|name|id',$info['category_id'],['parent_id'=>1]))}
			</div>
		</div>
	</div>
	<div class="layui-form-item">
		<div class="layui-inline">
			<label class="layui-form-label">商品单价：</label>
			<div class="layui-input-inline">
				<input name="price" id="price" value="{$info.format_price}" lay-verify="required" placeholder="请输入商品单价" autocomplete="off" class="layui-input" type="text">
			</div>
		</div>
		<div class="layui-inline">
			<label class="layui-form-label">商品重量：</label>
			<div class="layui-input-inline">
				<input name="weight" id="weight" value="{$info.weight}" lay-verify="required" placeholder="请输入商品重量(单位：克)" autocomplete="off" class="layui-input" type="text">
			</div>
		</div>
		<div class="layui-inline">
			<label class="layui-form-label">计量单位：</label>
			<div class="layui-input-inline">
				<input name="unit" id="unit" value="{$info.unit}" lay-verify="required" placeholder="请输入商品计量单位" autocomplete="off" class="layui-input" type="text">
			</div>
		</div>
	</div>
	<div class="layui-form-item">
		<div class="layui-inline">
			<label class="layui-form-label">整体计量：</label>
			<div class="layui-input-inline">
				<input name="entirety_unit" id="entirety_unit" value="{$info.entirety_unit}" lay-verify="required" placeholder="请输入商品整理计量单位" autocomplete="off" class="layui-input" type="text">
			</div>
		</div>
		<div class="layui-inline">
			<label class="layui-form-label">计量数量：</label>
			<div class="layui-input-inline">
				<input name="entirety_num" id="entirety_num" value="{$info.entirety_num}" lay-verify="required" placeholder="请输入整体计量单位下的商品数量" autocomplete="off" class="layui-input" type="text">
			</div>
		</div>
		<div class="layui-inline">
			<label class="layui-form-label">库存总数：</label>
			<div class="layui-input-inline">
				<input name="stock_num" id="stock_num" value="{$info.stock_num}" lay-verify="required" placeholder="请输入商品库存总数" autocomplete="off" class="layui-input" type="text">
			</div>
		</div>
	</div>
	<div class="layui-form-item">
		<div class="layui-inline">
			<label class="layui-form-label">关键词：</label>
			<div class="layui-input-inline">
				<input name="keywords" id="keywords" value="{$info.keywords}" lay-verify="required" placeholder="请输入商品关键词" autocomplete="off" class="layui-input" type="text">
			</div>
		</div>
		<div class="layui-inline">
			<label class="layui-form-label">赠送积分：</label>
			<div class="layui-input-inline">
				<input name="give_points" id="give_points" value="{$info.give_points}" lay-verify="required" placeholder="请输入该商品赠送积分" autocomplete="off" class="layui-input" type="text">
			</div>
		</div>
		<div class="layui-inline">
			<label class="layui-form-label">排序：</label>
			<div class="layui-input-inline">
				<input name="sort_order" id="sort_order" value="{$info.sort_order}" lay-verify="required|number" autocomplete="off" placeholder="请输入序号" class="layui-input" type="text">
			</div>
		</div>
	</div>
	<div class="layui-form-item" style="width:950px;">
		<label class="layui-form-label">商品图集：</label>
		<div class="layui-input-block">
			{:W('common/uploadMultImg',array(image,$info['imageList'],商品图集,'100x100',9))}
		</div>
	</div>
	<div class="layui-form-item layui-form-text" style="width:950px;">
		<label class="layui-form-label">商品简介：</label>
		<div class="layui-input-block">
			<textarea name="intro" id="intro" placeholder="请输入商品简介" class="layui-textarea">{$info.intro}</textarea>
		</div>
	</div>
	<div class="layui-form-item layui-form-text" style="width:950px;">
		<label class="layui-form-label">备注：</label>
		<div class="layui-input-block">
			<textarea name="note" id="note" placeholder="请输入商品备注" class="layui-textarea">{$info.note}</textarea>
		</div>
	</div>
	<div class="layui-form-item" style="width:950px;">
		<label class="layui-form-label">商品详情：</label>
		<div class="layui-input-block">
			<textarea name="content" id="content" lay-verify="required" class="layui-textarea">{$info.content}</textarea>
			{:W('kindeditor/getEditor',array('default',content,'100%',400))}
		</div>
	</div>
	<div class="layui-form-item">
		<div class="layui-input-block">
			<button class="layui-btn" lay-submit="" lay-filter="submitForm" id="submitForm">立即提交</button>
			<button type="reset" class="layui-btn layui-btn-primary">重置</button>
		</div>
	</div>
</form>